package com.aos.erp.schools.remote.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @program: erp
 * @description: 同步用户
 * @author: tanzhiyu
 * @create: 2018-11-19 11:33
 **/
@Getter
@Setter
@ApiModel("同步用户")
public class SynUser implements Serializable {
    public SynUser() {
    }

    public SynUser(String appCode, String mobile, String name, List orgCodeList, String password, String salt, String username) {
        this.appCode = appCode;
        this.mobile = mobile;
        this.name = name;
        this.orgCodeList = orgCodeList;
        this.password = password;
        this.salt = salt;
        this.username = username;
    }

    @Override
    public String toString() {
        return "SynUser{" +
                "appCode='" + appCode + '\'' +
                ", mobile='" + mobile + '\'' +
                ", name='" + name + '\'' +
                ", orgCodeList=" + orgCodeList +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", username='" + username + '\'' +
                '}';
    }

    @ApiModelProperty(value = "应用code")
    private String appCode;

    @ApiModelProperty(value = "电话")
    private String mobile;

    @ApiModelProperty(value = "姓名")
    private String name;
    @ApiModelProperty(value = "机构code列表")
    private List orgCodeList;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "盐")
    private String salt;

    @ApiModelProperty(value = "登录名")
    private String username;
}
